package com.wust.entity;

import java.util.Date;

public class UserCar {
    private Integer id;

    private Integer userId;

    private Integer carId;

    private Byte isOnCar;

    private Double driveTime;

    private Date createTime;

    private Date updateTime;

    public UserCar(Integer id, Integer userId, Integer carId, Byte isOnCar, Double driveTime, Date createTime, Date updateTime) {
        this.id = id;
        this.userId = userId;
        this.carId = carId;
        this.isOnCar = isOnCar;
        this.driveTime = driveTime;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public UserCar() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getCarId() {
        return carId;
    }

    public void setCarId(Integer carId) {
        this.carId = carId;
    }

    public Byte getIsOnCar() {
        return isOnCar;
    }

    public void setIsOnCar(Byte isOnCar) {
        this.isOnCar = isOnCar;
    }

    public Double getDriveTime() {
        return driveTime;
    }

    public void setDriveTime(Double driveTime) {
        this.driveTime = driveTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}